package com.ilop.sthome.data.greenDao;

import com.ilop.sthome.utils.greenDao.converter.SceneSwitchConverter;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.util.List;

/**
 * @author skygge
 * @date 2020-02-16.
 * GitHub：javofxu@github.com
 * email：skygge@yeah.net
 * description：场景类
 */
@Entity
public class SceneBean {

    @Id()
    private String sceneOnly;

    private String modleName;

    private int choice;

    private int sid;

    private String deviceName;

    private String color;

    private String code;

    private byte scene_default;

    //用到了这个Convert注解，表明它们的转换类，这样就可以转换成String保存到数据库中了
    @Convert(columnType = String.class, converter = SceneSwitchConverter.class)
    List<SceneSwitchBean> switchList; //实体类中网关list数据

    @Generated(hash = 1960769206)
    public SceneBean(String sceneOnly, String modleName, int choice, int sid,
            String deviceName, String color, String code, byte scene_default,
            List<SceneSwitchBean> switchList) {
        this.sceneOnly = sceneOnly;
        this.modleName = modleName;
        this.choice = choice;
        this.sid = sid;
        this.deviceName = deviceName;
        this.color = color;
        this.code = code;
        this.scene_default = scene_default;
        this.switchList = switchList;
    }

    @Generated(hash = 418765892)
    public SceneBean() {
    }

    public String getSceneOnly() {
        return this.sceneOnly;
    }

    public void setSceneOnly(String sceneOnly) {
        this.sceneOnly = sceneOnly;
    }

    public String getModleName() {
        return this.modleName;
    }

    public void setModleName(String modleName) {
        this.modleName = modleName;
    }

    public int getChoice() {
        return this.choice;
    }

    public void setChoice(int choice) {
        this.choice = choice;
    }

    public int getSid() {
        return this.sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getDeviceName() {
        return this.deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getColor() {
        return this.color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public byte getScene_default() {
        return this.scene_default;
    }

    public void setScene_default(byte scene_default) {
        this.scene_default = scene_default;
    }

    public List<SceneSwitchBean> getSwitchList() {
        return this.switchList;
    }

    public void setSwitchList(List<SceneSwitchBean> switchList) {
        this.switchList = switchList;
    }

    
}
